package com.sheledon.demo.demo2.controller;

import com.sheledon.demo.demo2.service.TeacherService;
import com.sheledon.flyCat.annotation.ioc.Autowired;
import com.sheledon.flyCat.annotation.springmvc.GetMapping;
import com.sheledon.flyCat.annotation.springmvc.PathVariable;
import com.sheledon.flyCat.annotation.springmvc.RestController;

@RestController("/teacher")
public class TeacherController {


    @Autowired
    private TeacherService teacherService;
    @GetMapping("/{id}")
    public void getTeacher(@PathVariable("id") int id){
        teacherService.come(id);
        System.out.println("无量");
    }

}
